package codeRandomThoughts.utils;

/**
 * 二叉树定义
 */
public class TreeNode {
    //节点里面的值
    public int val;
    public TreeNode left;//左孩子
    public TreeNode right;//右孩子

    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
